<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>企鹅绿洲</title>
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/normalize/8.0.0/normalize.min.css" rel="stylesheet">
    <style>
        html, body, .container {
            height: 100%;
            background-color: #ccc;
        }
        .collect {
            background: url("./img/desert.jpg") no-repeat;
            background-size: cover;
            height: 30%;
            width: 100%;
            position: relative;
        }
        .collect .tip {
            position: absolute;
            left: 0;
            top: 0;
            z-index: 10;
            line-height: 40px;
            height: 40px;
            width: 100%;
            background-color: #FFF;
        }
        .collect .value {
            position: absolute;
            top: 50px;
            left: 30px;
        }
        .collect .value p {
            font-size: 28px;
            color: #FFF;
            text-decoration: #FFF;
            margin-bottom: 0;
            border-bottom: 1px solid #FFF;
        }
        .collect .tip>span {
            position: relative;
            font-size: 2em;
            color: #FF5151;
            margin-left: 20px;
        }
        .collect .tip>i {
            position: relative;
            color: #FF5151;
            margin-left: 30px;
        }
        .diamonds {
            height: 50%;
            border: 1px solid #000;
            width: 100%;
            overflow: auto;
        }
        .diamond {
            display: block;
            height: 80px;
            width: 80px;
            position: relative;
            margin: 0 auto;
            border-radius: 50%;
            background: url("./img/diamond.jpg") no-repeat;
            background-size: cover;
        }
        .collect .green {
            position: absolute;
            bottom: 50px;
            padding: 10px 20px 10px 10px;
            border-bottom-right-radius: 25px;
            border-top-right-radius: 25px;
            background-color: forestgreen;
        }
        .collect .green>span{
            font-size: 26px;
            margin-left: 30px;
            color: #FFF;
        }
        .collect .tool {
            position: absolute;
            bottom: -25px;
            right: 20px;
            z-index: 10;
        }
        .recently {
            height: 25%;
            background-color: #fff;
            box-shadow: 0 1px 5px #000;
        }
        .land {
            height: 45%;
            margin-top: 20px;
            background-color: #fff;
        }
        .header {
            color: #444;
            font-size: 36px;
            padding-left: 30px;
            font-weight: 500;
            height: 130px;
            line-height: 130px;
            border-bottom: 1px solid #aaa;
        }
        .recently ul {
            list-style: none;
            font-size: 30px;
            padding: 20px 30px;
            margin-top: 10px;
        }
        .recently ul li {
            margin: 20px 0;
        }
        .recently .name {
            font-weight: bold;
            margin: 0 30px 0 0;
        }
        .recently .action {
            margin: 0 30px;
            color: #555;
            letter-spacing: 3px;
        }
        .recently .time {
            float: right;
            color: #888;
            margin-right: 30px;
            letter-spacing: 4px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="collect">
        <div class="tip">
            <i class="fa fa-bullhorn fa-2x"></i>
            <span>积累的碳值越多，每天产生的白钻越多</span>
        </div>
        <div class="value">
            <p>碳值：432</p>
            <p>钻石：123</p>
        </div>
        <span class="diamonds">
            <span class="diamond"></span>
        </span>
        <div class="green">
            <span>已绿化面积：72㎡</span>
        </div>
        <div class="tool">
            <i class="fa fa-map fa-3x"></i>
        </div>
    </div>
    <div class="recently">
        <div class="header">最新动态</div>
        <ul>
            <li><span class="name">小草莓</span><span class="action">采集了 1 个钻石</span><span class="time">14:23</span></li>
            <li><span class="name">小草莓</span><span class="action">采集了 1 个钻石</span><span class="time">14:23</span></li>
            <li><span class="name">小草莓</span><span class="action">采集了 1 个钻石</span><span class="time">14:23</span></li>
            <li><span class="name">小草莓</span><span class="action">采集了 1 个钻石</span><span class="time">14:23</span></li>
        </ul>
    </div>
    <div class="land">
        <div class="header">绿洲大厅</div>
    </div>
</div>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/velocity/2.0.2/velocity.min.js"></script>
<script>
  $('.diamond').velocity({
    top: [200, 250]
  }, {
    loop: true,
    easing: 'easeInSine',
    duration: 2000
  });
  $('.diamond').one('click', function () {
    $('.diamond').velocity('stop');
    $('.diamond').velocity({
      left: -50,
      top: 400,
      opacity: 0
    }, {
      duration: 1500
    })
  });
</script>
</body>
</html>